home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10796 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1019 b   |  30 lines

  1. Path: news.sprintlink.net!gol2!usenet
  2. From: glevand@gol.com (Geoffrey Levand)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: COOL: Something you can do in "C" you can NOT do in "C++"
  5. Date: Mon, 11 Mar 1996 10:37:49 GMT
  6. Organization: Global OnLine Japan (+81-3-5330-9385)
  7. Message-ID: <4i0vs1$iou@gol2.gol.com>
  8. References: <4hpov3$krb@qualcomm.com>
  9. NNTP-Posting-Host: ppp176.gol.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. fmerrow@wizard.qualcomm.com (Frank Merrow) wrote:
  13.  
  14. >I am teaching myself C++, but my interest in the language just dropped.
  15. >I want to read cin as a binary file and output cout the same as well.  I read
  16. >the FAQs on C++ and guess what YOU CAN'T DO IT.
  17.  
  18. IÆm not quite sure what you mean by "read cin as a binary file", but
  19. you can code up << and >> operators for the object you want to do i/o
  20. with.  Not hard to do, but the stream classes seem quite convoluted
  21. for the beginner.
  22.  
  23. Tom Swan discusses how to do some binary i/o one of his books.  The
  24. title was something like "C++ Code Secrets".
  25.  
  26. G. Levand 
  27.  
  28.  
  29.  
  30.